[Bf-taskforce25] RNA structs for UI grouping?

Campbell Barton ideasman42 at gmail.com
Tue Jan 6 05:48:05 CET 2009


On Sat, Jan 3, 2009 at 10:57 PM, Nicholas Bishop
<nicholasbishop at gmail.com> wrote:
> Hi Campbell. Indeed, this was after discussion with Brecht on IRC.
> Brecht added this for GameSettings in Object; I may have jumped the
> gun on doing this in other places, but I was working on Material.mtex,
> and wanted to do less scrolling while testing. :)
>
> -Nicholas
>
> On Sun, Jan 4, 2009 at 1:51 AM, Campbell Barton <ideasman42 at gmail.com> wrote:
>> I noticed Nicholas Bishop's recent commit r18297 uses more a number
>> RNA structs to wrap different parts of the material struct (giving
>> cleaner display in the outliner), Was this agreed on as a way to group
>> properties?
>>
>> from talking about this a while ago having a group string was
>> mentioned as a way to have the UI arrange props.
>>
>> I don't mean to pounce on Nicholas for doing this :), just wondering
>> if this is how rna should be used.
>>
>> --
>> - Campbell
>> _______________________________________________
>> Bf-taskforce25 mailing list
>> Bf-taskforce25 at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>>
> _______________________________________________
> Bf-taskforce25 mailing list
> Bf-taskforce25 at blender.org
> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>

For documentation it would be good to know what struct
MaterialRaytraceTransparency comes from, even though its logically a
sibling of the RNA Material struct, it makes sense to document it as a
struct within a struct.

At the moment the HTML docs show MaterialRaytraceTransparency and
Material as separate types, (though Material does show its member of
MaterialRaytraceTransparency type and link to it, the Class Member
index becomes confusing)

Could there be a struct property for nested structs?
StructRNA->parent/base/main/...  could be a StructRNA or string type.

-- 
- Campbell


More information about the Bf-taskforce25 mailing list