[Bf-extensions-cvs] [00e91ffa] master: addons-contrib: fixing problems in last commit

NBurn noreply at git.blender.org
Tue Jan 29 20:30:04 CET 2019


Commit: 00e91ffa554f89f1811772adb67471db06f50bb7
Author: NBurn
Date:   Tue Jan 29 14:29:44 2019 -0500
Branches: master
https://developer.blender.org/rBAC00e91ffa554f89f1811772adb67471db06f50bb7

addons-contrib: fixing problems in last commit

===================================================================

M	cacharanth/util.py
M	data_overrides/util.py
M	io_scene_fpx/fpx_import.py

===================================================================

diff --git a/cacharanth/util.py b/cacharanth/util.py
index d75f4391..541c6c3c 100644
--- a/cacharanth/util.py
+++ b/cacharanth/util.py
@@ -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))
diff --git a/data_overrides/util.py b/data_overrides/util.py
index 6fa86611..e09a1628 100644
--- a/data_overrides/util.py
+++ b/data_overrides/util.py
@@ -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))
diff --git a/io_scene_fpx/fpx_import.py b/io_scene_fpx/fpx_import.py
index 02977c00..8b51454b 100644
--- a/io_scene_fpx/fpx_import.py
+++ b/io_scene_fpx/fpx_import.py
@@ -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



More information about the Bf-extensions-cvs mailing list