Fix: Delay image node preview loading to improve open animation #121147

Open
Guillermo Venegas wants to merge 2 commits from guishe/blender:delay-load-images into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 9bb55b454d - Show all commits

View File

@ -726,7 +726,7 @@ static int node_add_file_modal(bContext *C, wmOperator *op, const wmEvent *event
/* End stack animation. */
if (duration > node_stack_anim_duration) {
WM_event_timer_remove(CTX_wm_manager(C), nullptr, data->anim_timer);
/* Enable back node previews. Only enabled by default to compositor nodes. */
/* Reenable node previews. Only enabled by default in compositor nodes. */
guishe marked this conversation as resolved Outdated

Grammar:

  • Enable back -> Reenable
  • to compositor nodes -> in compositor nodes
Grammar: - `Enable back` -> `Reenable` - `to compositor nodes` -> `in compositor nodes`
SpaceNode &snode = *CTX_wm_space_node(C);
bNodeTree &node_tree = *snode.edittree;
if (node_tree.type == NTREE_COMPOSIT) {