소스 검색

ParticleAsset & ParticleAssetEmitter.getSelectedField now returns a string representing the name of the selected field, as per original design.

capnlove 12 년 전
부모
커밋
cf166128ff
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      engine/source/2d/assets/ParticleAssetEmitter_ScriptBinding.h
  2. 1 1
      engine/source/2d/assets/ParticleAsset_ScriptBinding.h

+ 1 - 1
engine/source/2d/assets/ParticleAssetEmitter_ScriptBinding.h

@@ -634,7 +634,7 @@ ConsoleMethod(ParticleAssetEmitter, deselectField, void, 2, 2,  "() Deselect any
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 
 
-ConsoleMethod(ParticleAssetEmitter, getSelectedField, bool, 2, 2,   "() Gets the selected field name or nothing if no field is selected.\n"
+ConsoleMethod(ParticleAssetEmitter, getSelectedField, const char*, 2, 2,   "() Gets the selected field name or nothing if no field is selected.\n"
                                                                     "@return The selected field name or nothing if no fields is selected.")
                                                                     "@return The selected field name or nothing if no fields is selected.")
 {
 {
     // Get the selected field.
     // Get the selected field.

+ 1 - 1
engine/source/2d/assets/ParticleAsset_ScriptBinding.h

@@ -122,7 +122,7 @@ ConsoleMethod(ParticleAsset, deselectField, void, 2, 2, "() Deselect any selecte
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 
 
-ConsoleMethod(ParticleAsset, getSelectedField, bool, 2, 2,  "() Gets the selected field name or nothing if no field is selected.\n"
+ConsoleMethod(ParticleAsset, getSelectedField, const char*, 2, 2,  "() Gets the selected field name or nothing if no field is selected.\n"
                                                             "@return The selected field name or nothing if no fields is selected.")
                                                             "@return The selected field name or nothing if no fields is selected.")
 {
 {
     // Get the selected field.
     // Get the selected field.