Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(924)

Unified Diff: source/blender/editors/gpencil/gpencil_edit.c

Issue 5285047: Camera tracking integration Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Updated to tomato rev41255 Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: source/blender/editors/gpencil/gpencil_edit.c
===================================================================
--- source/blender/editors/gpencil/gpencil_edit.c (revision 41254)
+++ source/blender/editors/gpencil/gpencil_edit.c (working copy)
@@ -69,6 +69,7 @@
#include "ED_gpencil.h"
#include "ED_view3d.h"
+#include "ED_clip.h"
#include "gpencil_intern.h"
@@ -137,6 +138,19 @@
}
break;
+ case SPACE_CLIP: /* Nodes Editor */
+ {
+ SpaceClip *sc= (SpaceClip *)CTX_wm_space_data(C);
+ MovieClip *clip= ED_space_clip(sc);
+
+ if(clip) {
+ /* for now, as long as there's a clip, default to using that in Clip Editor */
+ if (ptr) RNA_id_pointer_create(&clip->id, ptr);
+ return &clip->gpd;
+ }
+ }
+ break;
+
default: /* unsupported space */
return NULL;
}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b