Skip to content

Commit cddd452

Browse files
[SofaPython3/Plugin] Add GetCustomClassName to Prefab (#288)
So the string returned is now "Prefab" instead of "Node".
1 parent 8ed1bb6 commit cddd452

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Plugin/src/SofaPython3/Prefab.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class SOFAPYTHON3_API Prefab : public BasePrefab
5959
void reinit();
6060
virtual void doReInit() ;
6161

62+
static const std::string GetCustomClassName(){ return "Prefab"; }
63+
6264
void addPrefabParameter(const std::string& name, const std::string& help, const std::string& type, pybind11::object defaultValue = pybind11::none());
6365
void setSourceTracking(const std::string& filename);
6466
void breakPrefab();

0 commit comments

Comments
 (0)