fix: User selection incositent with active view_layer
This commit is contained in:
parent
26cec517c0
commit
0a52b3cf80
@ -101,7 +101,9 @@ class DynamicRightSelectTimer(Timer):
|
|||||||
|
|
||||||
if self._user:
|
if self._user:
|
||||||
current_selection = utils.get_selected_objects(
|
current_selection = utils.get_selected_objects(
|
||||||
bpy.context.scene)
|
bpy.context.scene,
|
||||||
|
bpy.data.window_managers['WinMan'].windows[0].view_layer
|
||||||
|
)
|
||||||
if current_selection != self._last_selection:
|
if current_selection != self._last_selection:
|
||||||
if self._right_strategy == RP_COMMON:
|
if self._right_strategy == RP_COMMON:
|
||||||
obj_common = [
|
obj_common = [
|
||||||
|
@ -104,8 +104,8 @@ def get_armature_edition_context(armature):
|
|||||||
return override
|
return override
|
||||||
|
|
||||||
|
|
||||||
def get_selected_objects(scene):
|
def get_selected_objects(scene, active_view_layer):
|
||||||
return [obj.uuid for obj in scene.objects if obj.select_get()]
|
return [obj.uuid for obj in scene.objects if obj.select_get(view_layer=active_view_layer)]
|
||||||
|
|
||||||
|
|
||||||
def load_dict(src_dict, target):
|
def load_dict(src_dict, target):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user