addons-contrib: fixing problems in last commit
authorNBurn <7nburn@gmail.com>
Tue, 29 Jan 2019 19:29:44 +0000 (14:29 -0500)
committerNBurn <7nburn@gmail.com>
Tue, 29 Jan 2019 19:29:44 +0000 (14:29 -0500)
cacharanth/util.py
data_overrides/util.py
io_scene_fpx/fpx_import.py

index d75f439..541c6c3 100644 (file)
@@ -58,7 +58,7 @@ class OperatorCallContext():
         # restore active/selected state
         view_layer.objects.active = self.curact
         for ob in scene.objects:
-            ob.select = self.cursel.get(ob, False)
+            ob.select_set(self.cursel.get(ob, False))
 
         prefs.edit.use_global_undo = self.use_global_undo
 
@@ -68,4 +68,4 @@ def select_single_object(ob):
 
     view_layer.objects.active = ob
     for tob in scene.objects:
-        tob.select = (tob == ob)
+        tob.select_set((tob == ob))
index 6fa8661..e09a162 100644 (file)
@@ -84,7 +84,7 @@ class OperatorCallContext():
 
         # store active/selected state to restore it after operator execution
         self.curact = view_layer.objects.active
-        self.cursel = { ob : ob.select for ob in scene.objects }
+        self.cursel = { ob : ob.select_get() for ob in scene.objects }
 
         # undo can store files a lot when running operators internally,
         # disable since we only need one undo step after main operators anyway
@@ -101,7 +101,7 @@ class OperatorCallContext():
         # restore active/selected state
         view_layer.objects.active = self.curact
         for ob in scene.objects:
-            ob.select = self.cursel.get(ob, False)
+            ob.select_set(self.cursel.get(ob, False))
 
         prefs.edit.use_global_undo = self.use_global_undo
 
@@ -111,4 +111,4 @@ def select_single_object(ob):
 
     view_layer.objects.active = ob
     for tob in scene.objects:
-        tob.select = (tob == ob)
+        tob.select.set((tob == ob))
index 02977c0..8b51454 100644 (file)
@@ -3011,7 +3011,7 @@ def adjust_position(blender_context, blender_scene, fpx_model, fpx_model_type=No
 
     blender_object = blender_context.active_object
     blender_parent = blender_object.parent
-    blender_view_layer = blender_context.blender_view_layer
+    blender_view_layer = blender_context.view_layer
 
     # Fpm_Model_Type.OBJECT_OBJECT = 0
     ## Fpm_Model_Type.OBJECT_PEG = 1