Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_select.c
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
| #include "UI_view2d.h" | #include "UI_view2d.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "node_intern.h" /* own include */ | #include "node_intern.h" /* own include */ | ||||
| /* Function to detect if there is a visible view3d that uses workbench in texture mode. | /** | ||||
| * Function to detect if there is a visible view3d that uses workbench in texture mode. | |||||
| * This function is for fixing T76970 for Blender 2.83. The actual fix should add a mechanism in | * This function is for fixing T76970 for Blender 2.83. The actual fix should add a mechanism in | ||||
| * the depsgraph that can be used by the draw engines to check if they need to be redrawn. | * the depsgraph that can be used by the draw engines to check if they need to be redrawn. | ||||
| * | * | ||||
| * We don't want to add these risky changes this close before releasing 2.83 without good testing | * We don't want to add these risky changes this close before releasing 2.83 without good testing | ||||
| * hence this workaround. There are still cases were too many updates happen. For example when you | * hence this workaround. There are still cases were too many updates happen. For example when you | ||||
| * have both a Cycles and workbench with textures viewport. | * have both a Cycles and workbench with textures viewport. | ||||
| * */ | */ | ||||
| static bool has_workbench_in_texture_color(const wmWindowManager *wm, | static bool has_workbench_in_texture_color(const wmWindowManager *wm, | ||||
| const Scene *scene, | const Scene *scene, | ||||
| const Object *ob) | const Object *ob) | ||||
| { | { | ||||
| LISTBASE_FOREACH (wmWindow *, win, &wm->windows) { | LISTBASE_FOREACH (wmWindow *, win, &wm->windows) { | ||||
| if (win->scene != scene) { | if (win->scene != scene) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,217 Lines • Show Last 20 Lines | |||||