mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
check error return from setWeight
This commit is contained in:
parent
246e62c614
commit
c07989aace
@ -17,6 +17,7 @@
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "mayaBlendDesc.h"
|
||||
#include "config_mayaegg.h"
|
||||
|
||||
TypeHandle MayaBlendDesc::_type_handle;
|
||||
|
||||
@ -55,7 +56,11 @@ MayaBlendDesc::
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void MayaBlendDesc::
|
||||
set_slider(float value) {
|
||||
_deformer.setWeight(_weight_index, value);
|
||||
MStatus status = _deformer.setWeight(_weight_index, value);
|
||||
if (!status) {
|
||||
mayaegg_cat.warning()
|
||||
<< "Unable to set slider " << get_name() << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user