Created
April 5, 2018 17:29
-
-
Save garyo/36f7b5cbed5b5d1391797f58a591e147 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### Code: | |
void ExportGlTF::export_gltf(godot::Node node, const godot::String filename) | |
{ | |
std::string node_name = gdstring_to_string(node.get_name()); | |
DPRINT("gltf", "Exporting scene to glTF file {}, starting with {}"_format(filename, node_name)); | |
} | |
void ExportGlTF::_register_methods() | |
{ | |
godot::register_method("export_gltf", &ExportGlTF::export_gltf); | |
} | |
#### Errors: | |
cl /FoBuild\debug\src\gltf.obj /c Build\debug\src\gltf.cxx /TP /nologo /EHsc /std:c++17 /Zi /MDd /FdBuild/debug/Import.pdb /FS /DWIN64 /DVER=1.0.0-dev /DVMAJ=1 /DVMIN=0 /DVPOINT=0 /DVARIANT=debug /DENABLE_UNIT_TESTS /DSPDLOG_DEBUG_ON /DSPDLOG_TRACE_ON /IBuild\debug\thirdparty\linalg /Ithirdparty\inih /Ithirdparty\spdlog\include\spdlog /Ithirdparty\spdlog\include /IC:\dss\Product\GodotEngine\gdnative\godot_headers /IC:\dss\Product\GodotEngine\gdnative\godot-cpp\include /IC:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core /IBuild\debug\thirdparty /IBuild\debug\thirdparty\GSL\include | |
gltf.cxx | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(67): error C2440: 'return': cannot convert from 'godot::Variant' to 'godot::Node' | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(67): note: No constructor could take the source type, or constructor overload resolution was ambiguous | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(66): note: while compiling class template member function 'godot::Node godot::_ArgCast<godot::Node>::_arg_cast(godot::Variant)' | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(209): note: see reference to function template instantiation 'godot::Node godot::_ArgCast<godot::Node>::_arg_cast(godot::Variant)' being compiled | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(208): note: see reference to class template instantiation 'godot::_ArgCast<godot::Node>' being compiled | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(216): note: see reference to function template instantiation 'void godot::_WrappedMethod<T,R,godot::Node,godot::String>::apply<0,1>(godot::Variant *,T *,godot::Variant **,godot::__Sequence<0,1>)' being compiled | |
with | |
[ | |
T=ExportGlTF, | |
R=void | |
] | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(226): note: see reference to function template instantiation 'void godot::_WrappedMethod<T,R,godot::Node,godot::String>::apply<0,1>(godot::Variant *,T *,godot::Variant **,godot::__Sequence<0,1>)' being compiled | |
with | |
[ | |
T=ExportGlTF, | |
R=void | |
] | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(242): note: see reference to function template instantiation 'godot_variant godot::__wrapped_method<T,R,godot::Node,godot::String>(godot_object *,void *,void *,int,godot_variant **)' being compiled | |
with | |
[ | |
T=ExportGlTF, | |
R=void | |
] | |
C:\dss\Product\GodotEngine\gdnative\godot-cpp\include\core\Godot.hpp(281): note: see reference to function template instantiation 'godot::__godot_wrapper_method (__cdecl *godot::___get_wrapper_function<ExportGlTF,void,godot::Node,godot::String>(R (__cdecl ExportGlTF::* )(godot::Node,godot::String)))(godot_object *,void *,void *,int,godot_variant **)' being compiled | |
with | |
[ | |
R=void | |
] | |
Build\debug\src\gltf.cxx(68): note: see reference to function template instantiation 'void godot::register_method<void(__cdecl ExportGlTF::* )(godot::Node,godot::String)>(const char *,M,godot_method_rpc_mode)' being compiled | |
with | |
[ | |
M=void (__cdecl ExportGlTF::* )(godot::Node,godot::String) | |
] | |
scons: *** [Build\debug\src\gltf.obj] Error 2 | |
scons: building terminated because of errors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment