Skip to content

Commit cc9a5c5

Browse files
committed
👼Script: Added OGRE index buffer bindings.
The 'example_ogre_terrnBatcher.as' script was updated - Use the new indexBuffer bindings - Perform merging of selected meshes (buggy at the moment) - Display an inline control for scene node visibility - useful to compare original vs. generated meshes
1 parent 8f7b8fb commit cc9a5c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/main/scripting/bindings/OgreAngelscript.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,7 @@ void registerOgreSubEntity(AngelScript::asIScriptEngine* engine)
15451545

15461546
r = engine->RegisterObjectMethod("SubEntity", "const MaterialPtr& getMaterial() const", asMETHOD(SubEntity, getMaterial), asCALL_THISCALL); ROR_ASSERT(r >= 0);
15471547
r = engine->RegisterObjectMethod("SubEntity", "void setMaterial(const MaterialPtr&in)", asMETHOD(SubEntity, setMaterial), asCALL_THISCALL); ROR_ASSERT(r >= 0);
1548+
r = engine->RegisterObjectMethod("SubEntity", "SubMesh@ getSubMesh()", asMETHOD(SubEntity, getSubMesh), asCALL_THISCALL); ROR_ASSERT(r >= 0);
15481549

15491550
r = engine->SetDefaultNamespace(""); ROR_ASSERT(r >= 0);
15501551
}

0 commit comments

Comments
 (0)