added missing include
This commit is contained in:
parent
af185e1154
commit
cd4d80fac6
Notes:
blender-bot
2023-02-14 09:48:25 +01:00
Referenced by issue #48542, OSL crash on 32bit
|
@ -517,7 +517,7 @@ void BoneExtended::set_bone_layers(std::string layerString, std::vector<std::str
|
|||
if (isInteger(layer))
|
||||
{
|
||||
pos = atoi(layer.c_str());
|
||||
if (pos >= 0 || pos < 32) {
|
||||
if (pos >= 0 && pos < 32) {
|
||||
this->bone_layers = bc_set_layer(this->bone_layers, pos);
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
|
||||
extern "C" {
|
||||
#include "DNA_object_types.h"
|
||||
|
|
Loading…
Reference in New Issue