Skip to content

Commit 3864d83

Browse files
committed
fixes incorrect modifier naming on the modifier stack in 3ds Max 2022+ builds
removes the workarround which was previously implemented
1 parent 210fde7 commit 3864d83

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/hot.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,6 @@ HotMod::HotMod()
128128
pblock2 = NULL;
129129
tmControl = NULL;
130130
hotDesc.MakeAutoParamBlocks(this);
131-
132-
#if MAXVERSION > 2021
133-
// JW added: without this, newly created modifier would just be named "Object" in Max2022+
134-
SetName( hotDesc.ClassName() );
135-
//SetName( hotDesc.NonLocalizedClassName() );
136-
#endif
137-
138131
}
139132

140133
HotMod::~HotMod()

src/hot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class HotMod : public IHoudiniOcean
118118

119119
#if MAXVERSION > 2021
120120
// JW added: 2022+ adds localized flag
121-
void GetClassName(TSTR& s, bool localized)
121+
void GetClassName(TSTR& s, bool localized) const
122122
{
123123
UNUSED_PARAM(localized);
124124
s = GetString(IDS_RB_HOT_OSM_CLASS);
@@ -135,7 +135,7 @@ class HotMod : public IHoudiniOcean
135135

136136
#if MAXVERSION > 2021
137137
// JW added: 2022+ adds localized flag
138-
const TCHAR *GetObjectName( bool localized )
138+
const TCHAR *GetObjectName( bool localized ) const
139139
{
140140
UNUSED_PARAM(localized);
141141
return GetString(IDS_RB_HOT);

0 commit comments

Comments
 (0)