Fix T56912: bpy.data.masks.new() crashed
authorJacques Lucke <mail@jlucke.com>
Tue, 25 Sep 2018 10:01:43 +0000 (12:01 +0200)
committerJacques Lucke <mail@jlucke.com>
Tue, 25 Sep 2018 10:01:43 +0000 (12:01 +0200)
commit554b26cf88de613ac94121c652cfff45a8f03c88
tree6808d5d5069e62b8e0b2bff921700e88aa55b89d
parent0083c69624d2ae3df511c2ed9ae9baced75394af
Fix T56912: bpy.data.masks.new() crashed

I think there are two possible ways to fix that.
1. Make the name a required parameter.
2. Provide a default value.

I choosed option 1 in this fix to be consistent with other .new functions.

Also I think `RNA_def_string` instead of `RNA_def_string_file_path` should be used here. Looks like a copy-paste error.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D3728
source/blender/makesrna/intern/rna_main_api.c