mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
Fix: Incorrect length limit for node socket idname
This commit is contained in:
parent
40b3c6baf7
commit
7456709b69
1 changed files with 2 additions and 2 deletions
|
@ -174,12 +174,12 @@ static StructRNA *rna_NodeSocket_register(Main * /*bmain*/,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (strlen(identifier) >= sizeof(dummy_st.idname)) {
|
||||
if (strlen(identifier) >= sizeof(dummy_sock.idname)) {
|
||||
BKE_reportf(reports,
|
||||
RPT_ERROR,
|
||||
"Registering node socket class: '%s' is too long, maximum length is %d",
|
||||
identifier,
|
||||
int(sizeof(dummy_st.idname)));
|
||||
int(sizeof(dummy_sock.idname)));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue