Skip to content

Commit 9edb3e8

Browse files
committed
Heavy compatibility detection fix
1 parent 072199c commit 9edb3e8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Source/Objects/ObjectBase.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,20 @@ String ObjectBase::getText()
252252

253253
bool ObjectBase::checkHvccCompatibility()
254254
{
255-
if(HeavyCompatibleObjects::isCompatible(getTypeWithOriginPrefix()))
255+
auto type = getType();
256+
257+
if(type == "msg") // Prevent mixing up pd message and else/message
258+
{
259+
if (auto* objectPtr = ptr.getRaw<t_gobj>()) {
260+
auto const origin = pd::Library::getObjectOrigin(objectPtr);
261+
if(origin == "ELSE") {
262+
pd->logWarning(String("Warning: object message is not supported in Compiled Mode").toRawUTF8());
263+
return false;
264+
}
265+
}
266+
return true;
267+
}
268+
else if(HeavyCompatibleObjects::isCompatible(type))
256269
{
257270
return true;
258271
}

0 commit comments

Comments
 (0)