Skip to content

Commit ee2ea5d

Browse files
committed
was missing object base initialization
add in initialze call for object base factory settings
1 parent b8eae1e commit ee2ea5d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Common/Core/vtkEventData.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,11 @@ class vtkEventDataButton3D : public vtkEventDataDevice3D
193193
{
194194
public:
195195
vtkTypeMacro(vtkEventDataButton3D, vtkEventDataDevice3D);
196-
static vtkEventDataButton3D *New()
197-
{return new vtkEventDataButton3D;};
196+
static vtkEventDataButton3D *New() {
197+
vtkEventDataButton3D *ret = new vtkEventDataButton3D;
198+
ret->InitializeObjectBase();
199+
return ret;
200+
};
198201

199202
protected:
200203
vtkEventDataButton3D() { this->Type = vtkCommand::Button3DEvent; }
@@ -210,8 +213,11 @@ class vtkEventDataMove3D : public vtkEventDataDevice3D
210213
{
211214
public:
212215
vtkTypeMacro(vtkEventDataMove3D, vtkEventDataDevice3D);
213-
static vtkEventDataMove3D *New()
214-
{return new vtkEventDataMove3D;};
216+
static vtkEventDataMove3D *New() {
217+
vtkEventDataMove3D *ret = new vtkEventDataMove3D;
218+
ret->InitializeObjectBase();
219+
return ret;
220+
};
215221

216222
protected:
217223
vtkEventDataMove3D() { this->Type = vtkCommand::Move3DEvent; }

0 commit comments

Comments
 (0)