Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Blender28 support#104

Closed
mkolar wants to merge 64 commits intomasterfrom
blender28-support
Closed

Blender28 support#104
mkolar wants to merge 64 commits intomasterfrom
blender28-support

Conversation

@mkolar
Copy link
Member

@mkolar mkolar commented Jan 29, 2020

Thank you for your contribution to Avalon! Here's how you can get your code merged quickly.

What's changed?
Briefly summarise the changes you've made, something human-readable to get the reader up-to-speed with your thought process (hint: everyone loves bullet-lists). If the PR is in response to an existing issue (it should), link to this here.

Health Check
To ensure your code lives up the standards of Avalon, consult the Pull-Request section of CONTRIBUTION.md for details.

Examples
If you are unsure of how to format your pull-request, have a look at these examples. #403, #400

jasperges and others added 30 commits October 30, 2019 13:15
Actually unrelated to Blender, but thought I snuck it in...
this change is correcting mapping fps values set like decimals. For example fps set as 25.0 wouldn't be mapped correctly. This change will cast fps to int if it finds its decimal places are zero. It is also adding more fps mapping for maya.
Avoid using `nuke.Text_Knob` since it could be a layout divider if the init value is an empty string.
The spacing between `OptionalAction` menu action icon and label may differ between hosts. Make them all the same.
davidlatwe and others added 27 commits December 6, 2019 23:11
Fix loader in Houdini 18 as it returns 'long' instead of 'int'
Doc string added.
Fix getavalon#487: Preserve loader styling in Maya 2020
Fix getavalon#485: Allow avalon to initialize correctly with Maya 2020
Because `bpy.context` might not be fully populated when queried from a
Qt app, you can use `lib.bpy_context()`.

At the moment only `active_object`, `object` and `selected_objects` are
added. Other attributes will follow when needed.
Because the `bpy.context` is not always properly populated when queried
from within a Qt app, a wrapper is added. Instead of directly using
`bpy` you can `from avalon.blender import bpy`. All needed overrides can
now be handled there and everything else is simply passed through from
the original `bpy`.

Hopefully this is a (fairly) short-term remedy and a proper solution
will be found in the near future. 8)
if current == "Empty":
index = 0
else:
for index, member in enumerate(options):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loop control variable 'index' not used within the loop body. If this is intended, start the name with an underscore.


changed = QtCore.Signal(QtCore.QObject) # A QArgument

def __init__(self,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black would make changes.

add_publish_knob,
maintained_selection,
read,

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black would make changes.

# QtCore.QCoreApplication instance which does not have
# the allWidgets method. As such, we call the staticmethod.
all_widgets = QtWidgets.QApplication.allWidgets()

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line contains whitespace

def _uninstall_menu():
app = QtWidgets.QApplication.instance()
widgets = dict((w.objectName(), w) for w in app.allWidgets())

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line contains whitespace


def execute(self, context):
from .. import style
self._window = TestApp()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined name 'TestApp'

"""

# Check if `self._window` is properly set
if getattr(self, "_window") is None:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not call getattr with a constant attribute value, it is not any safer than normal property access.


try:
# It says `strtobool` returns a bool, but it returns an int :/
return bool(strtobool(os.environ.get('AVALON_DEBUG', "False")))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black would make changes.

pipeline.metadata_update(node, imprint_data)


def lsattr(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black would make changes.

"ls",
"publish",
"containerise",

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black would make changes.

@mkolar mkolar closed this Jan 29, 2020
@mkolar mkolar deleted the blender28-support branch January 31, 2020 21:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants