Instance properties for the same target component


#1

Hi,

I ran into an issue (already resolved, but just letting you know as a general workflow thing), where applying multiple instance properties for the same target component, but coming from separate JSON elements, the system only applies the first instance property it finds.

This works,

                    {
                        "TargetComponent": "./LaserPrototypeEntityV2:7/nap::LineProjectionMappingComponent101",
                        "TargetAttributes": [
                            {
                                "Path": "Source",
                                "Value": {
                                    "Type": "nap::PointerInstancePropertyValue",
                                    "mID": "nap::PointerInstancePropertyValue_129",
                                    "Value": "LaserTraceV2Mesh8"
                                }
                            },
                            {
                                "Path": "Destination",
                                "Value": {
                                    "Type": "nap::PointerInstancePropertyValue",
                                    "mID": "nap::PointerInstancePropertyValue_130",
                                    "Value": "ProjectedLine8"
                                }
                            }
                        ]
                    },

This does not,

                    {
                        "TargetComponent": "./LaserPrototypeEntityV2:7/nap::LineProjectionMappingComponent101",
                        "TargetAttributes": [
                            {
                                "Path": "Source",
                                "Value": {
                                    "Type": "nap::PointerInstancePropertyValue",
                                    "mID": "nap::PointerInstancePropertyValue_129",
                                    "Value": "LaserTraceV2Mesh8"
                                }
                            },
                            }
                        ]
                    },
                    {
                        "TargetComponent": "./LaserPrototypeEntityV2:7/nap::LineProjectionMappingComponent101",
                        "TargetAttributes": [
                                "Path": "Destination",
                                "Value": {
                                    "Type": "nap::PointerInstancePropertyValue",
                                    "mID": "nap::PointerInstancePropertyValue_130",
                                    "Value": "ProjectedLine8"
                                }
                            }
                        ]
                    },

Perhaps an issue with JSON iteration only picking up on the first one it finds?