Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_movieclip.cc
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void init(const bContext *C, PointerRNA *ptr) | static void init(const bContext *C, PointerRNA *ptr) | ||||
| { | { | ||||
| bNode *node = (bNode *)ptr->data; | bNode *node = (bNode *)ptr->data; | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| MovieClipUser *user = MEM_cnew<MovieClipUser>(__func__); | MovieClipUser *user = MEM_cnew<MovieClipUser>(MEM_AT); | ||||
| node->id = (ID *)scene->clip; | node->id = (ID *)scene->clip; | ||||
| id_us_plus(node->id); | id_us_plus(node->id); | ||||
| node->storage = user; | node->storage = user; | ||||
| user->framenr = 1; | user->framenr = 1; | ||||
| } | } | ||||
| static void node_composit_buts_movieclip(uiLayout *layout, bContext *C, PointerRNA *ptr) | static void node_composit_buts_movieclip(uiLayout *layout, bContext *C, PointerRNA *ptr) | ||||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||