Blender Git Commits

Blender Git "master" branch commits.

Page: 2158 / 5574

April 7, 2017, 07:58 (GMT)
Fix compilation error after recent changes
Revision 9c01aaa by Mike Erwin
April 7, 2017, 07:08 (GMT)
OpenGL: disable rotate manipulator clipping on Mac

This fixes T51143.

gl_ClipDistance is part of GLSL version 1.3 but Mac is stuck on 1.2 for now.

This workaround uses GPU_SHADER_3D_UNIFORM_COLOR for the entire rotation widget, ignoring any clipping plane. The CLIPPING shader only works on GLSL 1.3+ so I removed its 1.2 cruft.

A legacy implementation using gl_ClipVertex might be possible, but is not worth the effort. This problem (and workaround) goes away when all platforms move to 3.3 core profile.
Revision c986a2c by Mike Erwin
April 7, 2017, 06:57 (GMT)
fix rotation manipulator's Push/PopMatrix balance

Was popping out the bottom of the stack.
April 7, 2017, 01:47 (GMT)
Fix T51137: Edge Rip Hangs
Revision 115a889 by Mike Erwin
April 6, 2017, 23:37 (GMT)
OpenGL: refactor ui_panel_category_draw_tab

changes:
- exact vertex count
- take bool (filled vs outline) instead of GLenum

This function has some flexibility that is not currently used. I left that in.
Revision f696784 by Mike Erwin
April 6, 2017, 23:15 (GMT)
OpenGL: refactor UI_draw_roundbox functions

Each function takes a bool (filled vs outline) and a color. We already had multiple ways of passing color in; these are still here. Special variant for anti-aliasing.

- took GLenum out of interface
- removed UI_RB_ALPHA flag (only one place really used it)
- use exact vertex count
- removed redundant state changes (BLEND, LINE_SMOOTH)
April 6, 2017, 16:46 (GMT)
New build option WITH_LEGACY_OPENGL

This introduces a new CMake option - WITH_LEGACY_OPENGL. Without this option
things may not draw perfectly, however, we should soon be able to build with
OpenGL core profile.

The matrix-related api calls are (still) not handled here (glTranslate, ...).

There seems to be no consensus on whether to make this build option the
default. We can talk about this later. For now two things are the
priority:

(1) To get rid of deprecated calls when WITH_LEGACY_OPENGL is ON
(2) To make core profile work for Mesa/Mac when WITH_LEGACY_OPENGL is OFF

Reviewers: merwin, sergey, campbellbarton

Differential Revision: https://developer.blender.org/D2603

Many thanks for Sergey Sharybin for the help.
April 6, 2017, 15:20 (GMT)
Fix T51135: Cylinder primitive generated bad UVs
April 6, 2017, 14:58 (GMT)
Depsgraph: Prefer use anonymous structs for unused arguments
April 6, 2017, 14:47 (GMT)
Alembic: rewrapped some lines to fit within 80 chars.
April 6, 2017, 14:47 (GMT)
Alembic import: compatibility with pre-C++11 compilers.
April 6, 2017, 14:47 (GMT)
Alembic import: restructured the importer w.g.t. parenthood

Previously, a GHash was used to store a flattened mapping of parent
information based on the Alembic hierarchy, and then that hash was used to
set parent pointers on Blender objects. This resulted in errors and
some duplicate objects. The new approach stores parent pointers while
traversing the Alembic hierarchy, which means that there is much more
information about the actual context of the Alembic object itself,
producing a more stable import.
April 6, 2017, 14:47 (GMT)
Alembic: rotation mode issue in copy_m44_axis_swap, and added unit tests.
April 6, 2017, 14:47 (GMT)
Added float[][] comparison macros to testing.h

I've moved EXPECT_M3_NEAR from abc_matrix_test.cc to testing.h, as that's
a more suitable location.
April 6, 2017, 14:47 (GMT)
Alembic: Renamed create_rotation_matrix to create_swapped_rotation_matrix and more:

Also replaced the bool param "to_yup" with "AbcAxisSwapMode mode", so that
it's more explicit that axes are swapped.

Also added unittests for create_swapped_rotation_matrix.
April 6, 2017, 14:47 (GMT)
CMake: Fixed order of bf_alembic in SETUP_BLENDER_SORTED_LIBS

bf_alembic depends on bf_bmesh, and should therefore be above it.
April 6, 2017, 14:47 (GMT)
Alembic import: fixed crash on more complex model

There was a problem with parent-child relations not getting set up
correctly when an Alembic object was both the transform for a mesh object
and the parent of other mesh objects.
April 6, 2017, 14:47 (GMT)
Alembic: comment typo/error fixes
April 6, 2017, 14:47 (GMT)
Alembic import: prevented unnecessary vector scaling
April 6, 2017, 14:47 (GMT)
Alembic import: moved import-time scaling to different function

convert_matrix() now only converts from Imath::M44d to float[4][4] (taking
different camera orientations into account). Import-time scaling is now
performed by the caller.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021