Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/node_geometry_util.cc
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| switch (data_type) { | switch (data_type) { | ||||
| case CD_PROP_BOOL: | case CD_PROP_BOOL: | ||||
| return 0; | return 0; | ||||
| case CD_PROP_INT32: | case CD_PROP_INT32: | ||||
| return 1; | return 1; | ||||
| case CD_PROP_FLOAT: | case CD_PROP_FLOAT: | ||||
| return 2; | return 2; | ||||
| case CD_PROP_FLOAT2: | |||||
| return 3; | |||||
| case CD_PROP_FLOAT3: | case CD_PROP_FLOAT3: | ||||
| return 4; | return 4; | ||||
| case CD_PROP_COLOR: | case CD_PROP_COLOR: | ||||
| return 5; | return 5; | ||||
| #if 0 /* These attribute types are not supported yet. */ | #if 0 /* These attribute types are not supported yet. */ | ||||
| case CD_MLOOPCOL: | case CD_MLOOPCOL: | ||||
| return 3; | return 3; | ||||
| case CD_PROP_STRING: | case CD_PROP_STRING: | ||||
| Show All 39 Lines | |||||