[Bf-blender-cvs] [eee4755c74e] blender2.8: Fix active object doesn't show on templateID
Dalai Felinto
noreply at git.blender.org
Thu Jul 20 10:56:57 CEST 2017
Commit: eee4755c74e86128c2ea6f68da743888f37b8091
Author: Dalai Felinto
Date: Thu Jul 20 10:37:36 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBeee4755c74e86128c2ea6f68da743888f37b8091
Fix active object doesn't show on templateID
Before that if you went to the object panel tab in the Properties Editor
the active object wouldn't show in the first panel.
===================================================================
M release/scripts/startup/bl_ui/properties_object.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index 5311e893773..0d8309268fb 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -40,7 +40,7 @@ class OBJECT_PT_context_object(ObjectButtonsPanel, Panel):
layout.template_ID(space, "pin_id")
else:
row = layout.row()
- row.template_ID(context.scene.objects, "active")
+ row.template_ID(context.render_layer.objects, "active")
class OBJECT_PT_transform(ObjectButtonsPanel, Panel):
More information about the Bf-blender-cvs
mailing list