prman-pixar / RenderManForBlender

RenderMan for Blender render addon
MIT License
803 stars 134 forks source link

Adding RenderMan lights does not respect cursor and collection #700

Closed erjiang closed 10 months ago

erjiang commented 10 months ago

When adding objects in Blender via the Shift-A Add menu, the new object should be placed at the 3D cursor location and in the active collection. RfB instead places them at the world origin and in the Scene collection.

To reproduce:

  1. Create a new collection and mark it as active.
  2. Move the 3D cursor to a location different from world origin.
  3. Shift-A -> RenderMan -> Light -> PxrRectLight

Expected:

PxrRectLight should be created at the 3D cursor location in the new collection.

Actual:

PxrRectLight is created at 0,0,0 in the Scene Collection

prman-pixar commented 10 months ago

Should be fixed now.

erjiang commented 10 months ago

Looks like latest revision on dev does put lights at the 3d cursor but doesn't seem to put them in the selected collection by default.