Cleanup: Silence warning for wrong const char comparison
Incorrectly used comparison for empty string. Reported in chat by @jacqueslucke.
This commit is contained in:
parent
018272ee5b
commit
56344fb30f
Notes:
blender-bot
2023-02-14 03:52:45 +01:00
Referenced by issue #94797, Crash when playing animation in eevee rendered view
|
@ -76,7 +76,7 @@ static void sh_node_math_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
|||
|
||||
for (const EnumPropertyItem *item = rna_enum_node_math_items; item->identifier != nullptr;
|
||||
item++) {
|
||||
if (item->name != nullptr && item->identifier != "") {
|
||||
if (item->name != nullptr && item->identifier[0] != '\0') {
|
||||
params.add_item(
|
||||
IFACE_(item->name), SocketSearchOp{"Value", (NodeMathOperation)item->value}, weight);
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ static void sh_node_vector_math_gather_link_searches(GatherLinkSearchOpParams &p
|
|||
|
||||
for (const EnumPropertyItem *item = rna_enum_node_vec_math_items; item->identifier != nullptr;
|
||||
item++) {
|
||||
if (item->name != nullptr && item->identifier != "") {
|
||||
if (item->name != nullptr && item->identifier[0] != '\0') {
|
||||
if ((params.in_out() == SOCK_OUT) && ELEM(item->value,
|
||||
NODE_VECTOR_MATH_LENGTH,
|
||||
NODE_VECTOR_MATH_DISTANCE,
|
||||
|
|
Loading…
Reference in New Issue