Fixed integer division by zero error when loading files

This commit is contained in:
Yousef Khadadeh 2026-04-03 14:18:04 +03:00
parent 58fb02f449
commit 97d308268d
19 changed files with 97 additions and 30 deletions

View file

@ -527,7 +527,7 @@ void DrawingProgram::pen_tool_switch_check() {
void DrawingProgram::invalidate_cache_at_component(CanvasComponentContainer::ObjInfo* objToCheck) {
if(!selection.is_selected(objToCheck))
drawCache.invalidate_cache_at_aabb(objToCheck->obj->get_world_bounds());
drawCache.invalidate_cache_at_optional_aabb(objToCheck->obj->get_world_bounds());
}
void DrawingProgram::preupdate_component(CanvasComponentContainer::ObjInfo* objToCheck) {