Merge branch 'blender-v2.81-release'
This commit is contained in:
commit
4bb8a3c111
|
@ -20,6 +20,7 @@
|
|||
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
@ -27,6 +28,7 @@ class Builder:
|
|||
def __init__(self, name, branch):
|
||||
self.name = name
|
||||
self.branch = branch
|
||||
self.is_release_branch = re.match("^blender-v(.*)-release$", branch) is not None
|
||||
|
||||
# Buildbot runs from build/ directory
|
||||
self.blender_dir = os.path.abspath(os.path.join('..', 'blender.git'))
|
||||
|
|
|
@ -32,8 +32,9 @@ def get_package_name(builder, platform=None):
|
|||
package_name = 'blender-' + info.full_version
|
||||
if platform:
|
||||
package_name += '-' + platform
|
||||
if builder.branch != 'master' and info.is_development_build:
|
||||
package_name = builder.branch + "-" + package_name
|
||||
if not (builder.branch == 'master' or builder.is_release_branch):
|
||||
if info.is_development_build:
|
||||
package_name = builder.branch + "-" + package_name
|
||||
|
||||
return package_name
|
||||
|
||||
|
@ -47,6 +48,7 @@ def create_buildbot_upload_zip(builder, package_files):
|
|||
try:
|
||||
z = zipfile.ZipFile(buildbot_upload_zip, "w", compression=zipfile.ZIP_STORED)
|
||||
for filepath, filename in package_files:
|
||||
print("Packaged", filename)
|
||||
z.write(filepath, arcname=filename)
|
||||
z.close()
|
||||
except Exception as ex:
|
||||
|
|
|
@ -103,15 +103,17 @@ static Object **object_array_for_shading(bContext *C, uint *r_objects_len)
|
|||
ScrArea *sa = CTX_wm_area(C);
|
||||
SpaceProperties *sbuts = NULL;
|
||||
View3D *v3d = NULL;
|
||||
if (sa->spacetype == SPACE_PROPERTIES) {
|
||||
sbuts = sa->spacedata.first;
|
||||
}
|
||||
else if (sa->spacetype == SPACE_VIEW3D) {
|
||||
v3d = sa->spacedata.first;
|
||||
if (sa != NULL) {
|
||||
if (sa->spacetype == SPACE_PROPERTIES) {
|
||||
sbuts = sa->spacedata.first;
|
||||
}
|
||||
else if (sa->spacetype == SPACE_VIEW3D) {
|
||||
v3d = sa->spacedata.first;
|
||||
}
|
||||
}
|
||||
|
||||
Object **objects;
|
||||
if (sbuts && sbuts->pinid && GS(sbuts->pinid->name) == ID_OB) {
|
||||
if (sbuts != NULL && sbuts->pinid && GS(sbuts->pinid->name) == ID_OB) {
|
||||
objects = MEM_mallocN(sizeof(*objects), __func__);
|
||||
objects[0] = (Object *)sbuts->pinid;
|
||||
*r_objects_len = 1;
|
||||
|
|
|
@ -648,7 +648,7 @@ bool rna_PoseChannel_constraints_override_apply(Main *UNUSED(bmain),
|
|||
|
||||
/* Remember that insertion operations are defined and stored in correct order, which means that
|
||||
* even if we insert several items in a row, we always insert first one, then second one, etc.
|
||||
* So we should always find 'anchor' constraint in both _src *and* _dst> */
|
||||
* So we should always find 'anchor' constraint in both _src *and* _dst */
|
||||
bConstraint *con_anchor = NULL;
|
||||
if (opop->subitem_local_name && opop->subitem_local_name[0]) {
|
||||
con_anchor = BLI_findstring(
|
||||
|
@ -669,7 +669,11 @@ bool rna_PoseChannel_constraints_override_apply(Main *UNUSED(bmain),
|
|||
}
|
||||
con_src = con_src ? con_src->next : pchan_src->constraints.first;
|
||||
|
||||
BLI_assert(con_src != NULL);
|
||||
if (con_src == NULL) {
|
||||
printf("%s: Could not find constraint to insert, doing nothing...\n", __func__);
|
||||
BLI_assert(0);
|
||||
return false;
|
||||
}
|
||||
|
||||
bConstraint *con_dst = BKE_constraint_duplicate_ex(con_src, 0, true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue