[Bf-blender-cvs] [4bc413eae12] tmp-workbench-rewrite2: Remove leftover View from engine data

Miguel Pozo noreply at git.blender.org
Mon Jan 23 15:41:11 CET 2023


Commit: 4bc413eae12a555c56461f29af384a71b771011b
Author: Miguel Pozo
Date:   Mon Jan 23 13:37:18 2023 +0100
Branches: tmp-workbench-rewrite2
https://developer.blender.org/rB4bc413eae12a555c56461f29af384a71b771011b

Remove leftover View from engine data

The pointer was getting read as the engine data info string.

===================================================================

M	source/blender/draw/engines/workbench/workbench_engine.cc

===================================================================

diff --git a/source/blender/draw/engines/workbench/workbench_engine.cc b/source/blender/draw/engines/workbench/workbench_engine.cc
index a1167c75708..a04f61418f6 100644
--- a/source/blender/draw/engines/workbench/workbench_engine.cc
+++ b/source/blender/draw/engines/workbench/workbench_engine.cc
@@ -401,7 +401,6 @@ struct WORKBENCH_Data {
   DRWViewportEmptyList *psl;
   DRWViewportEmptyList *stl;
   workbench::Instance *instance;
-  draw::View *view;
 
   char info[GPU_INFO_SIZE];
 };
@@ -416,7 +415,6 @@ static void workbench_engine_init(void *vedata)
   WORKBENCH_Data *ved = reinterpret_cast<WORKBENCH_Data *>(vedata);
   if (ved->instance == nullptr) {
     ved->instance = new workbench::Instance();
-    ved->view = new draw::View("Default View");
   }
 
   ved->instance->init();



More information about the Bf-blender-cvs mailing list