Skip to main content
5 events
when toggle format what by license comment
Jun 26, 2020 at 10:05 comment added batFINGER @Rakeshchoudhary Addon is looking good. A small suggestion. If using context in an operator method go for def create_material(self, context) and pass context as you would calling other methods like invoke, execute, and draw eg with self.create_material(context) At the time being this does not alter the result, as AFAIK the context passed and bpy.context are always same, even if context is overridden. If in the future this is changed it could result in context passed in operators with overridden context may not match "actual context", then it would be a difficult issue to debug.
Jun 26, 2020 at 9:29 vote accept Rakesh choudhary
Jun 26, 2020 at 9:29 vote accept Rakesh choudhary
Jun 26, 2020 at 9:29
Jun 26, 2020 at 8:16 history edited batFINGER CC BY-SA 4.0
added 374 characters in body
Jun 26, 2020 at 8:10 history answered batFINGER CC BY-SA 4.0