[Bf-blender-cvs] [a01ba66cf69] master: Clip Editor: Allow opening and creating images from Plane Track panel

Sergey Sharybin noreply at git.blender.org
Tue Nov 26 15:56:35 CET 2019


Commit: a01ba66cf6972f80f835eee4fcbdcba49e4d111e
Author: Sergey Sharybin
Date:   Fri Nov 1 15:52:12 2019 +0100
Branches: master
https://developer.blender.org/rBa01ba66cf6972f80f835eee4fcbdcba49e4d111e

Clip Editor: Allow opening and creating images from Plane Track panel

Differential Revision: https://developer.blender.org/D6170

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

M	release/scripts/startup/bl_ui/space_clip.py

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

diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index b5154e72de6..324931b2269 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -766,6 +766,7 @@ class CLIP_PT_plane_track(CLIP_PT_tracking_panel, Panel):
     def draw(self, context):
         layout = self.layout
         layout.use_property_split = True
+        layout.use_property_decorate = False  # No animation.
 
         clip = context.space_data.clip
         active_track = clip.tracking.plane_tracks.active
@@ -777,7 +778,8 @@ class CLIP_PT_plane_track(CLIP_PT_tracking_panel, Panel):
 
         layout.prop(active_track, "name")
         layout.prop(active_track, "use_auto_keying")
-        layout.prop(active_track, "image")
+        layout.template_ID(
+            active_track, "image", new="image.new", open="image.open", text="Image")
 
         row = layout.row()
         row.active = active_track.image is not None



More information about the Bf-blender-cvs mailing list