mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix compile warning
This commit is contained in:
parent
553b009a24
commit
ee03d5c45d
@ -3921,13 +3921,16 @@ get_shader_input(InternalName *id) const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
const int NodePath::
|
||||
get_instance_count() const {
|
||||
nassertr_always(!is_empty(), NULL);
|
||||
nassertr_always(!is_empty(), 0);
|
||||
|
||||
const RenderAttrib *attrib =
|
||||
node()->get_attrib(ShaderAttrib::get_class_slot());
|
||||
|
||||
if (attrib != (const RenderAttrib *)NULL) {
|
||||
const ShaderAttrib *sa = DCAST(ShaderAttrib, attrib);
|
||||
return sa->get_instance_count();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user