mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Fix bug where sometimes active object edits would not get synced correctly.
This commit is contained in:
@@ -9,7 +9,7 @@ from ifcopenshell.api.type.data import Data as TypeData
|
|||||||
|
|
||||||
|
|
||||||
def mode_callback(obj, data):
|
def mode_callback(obj, data):
|
||||||
for obj in bpy.context.selected_objects:
|
for obj in bpy.context.selected_objects + [bpy.context.active_object]:
|
||||||
if (
|
if (
|
||||||
obj.mode != "EDIT"
|
obj.mode != "EDIT"
|
||||||
or not obj.data
|
or not obj.data
|
||||||
|
|||||||
Reference in New Issue
Block a user