diff options
Diffstat (limited to 'source/blender/compositor/intern/COM_WorkScheduler.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_WorkScheduler.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/compositor/intern/COM_WorkScheduler.cpp b/source/blender/compositor/intern/COM_WorkScheduler.cpp index 753940cd4f2..7d4134aca13 100644 --- a/source/blender/compositor/intern/COM_WorkScheduler.cpp +++ b/source/blender/compositor/intern/COM_WorkScheduler.cpp @@ -95,7 +95,9 @@ void ** g_highlightedNodesRead; } \ } \ } -void COM_startReadHighlights() { + +void COM_startReadHighlights() +{ if (g_highlightedNodesRead) { delete [] g_highlightedNodesRead; } @@ -108,7 +110,8 @@ void COM_startReadHighlights() { } } -int COM_isHighlightedbNode(bNode* bnode) { +int COM_isHighlightedbNode(bNode* bnode) +{ if (!g_highlightedNodesRead) return false; for (int i = 0 ; i < MAX_HIGHLIGHT; i++) { void* p = g_highlightedNodesRead[i]; |