Skip to content
Snippets Groups Projects
Commit 3a409083 authored by Ethan Simon's avatar Ethan Simon Committed by Aaron Carlisle
Browse files

Add Curve Extra Objects: Fix invalid context traceback error

This patch simply adds a preliminary check for the built-in Add Curve Extra Objects add-on.
The check basically prevents a traceback in the console.
Without this patch the add-on still functions as intended, just with a console prompt.

Reviewed By: Blendify

Differential Revision: https://developer.blender.org/D9666
parent 448eeb68
No related branches found
No related tags found
No related merge requests found
...@@ -424,10 +424,11 @@ def menu_funcs(self, context): ...@@ -424,10 +424,11 @@ def menu_funcs(self, context):
layout = self.layout layout = self.layout
if bpy.context.view_layer.objects.active.type == "CURVE": if context.view_layer.objects.active:
layout.operator("curve.bevelcurve") if context.view_layer.objects.active.type == "CURVE":
layout.operator("curve.tapercurve") layout.operator("curve.bevelcurve")
layout.separator() layout.operator("curve.tapercurve")
layout.separator()
# Register # Register
classes = [ classes = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment