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.
This commit is contained in:
Dalai Felinto
2017-07-20 10:37:36 +02:00
parent 0e2f8ed8a6
commit eee4755c74

View File

@@ -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):