Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
2017-04-07OpenGL: use PRIM instead of GL enum for immBeginMike Erwin
Getting ready for a Gawain API change... Part of T49043
2017-04-07use COMP instead of GL enum to construct vertex formatMike Erwin
I converted all other files a day or two ago; this file was part of a recent merge.
2017-04-07OpenGL: remove UI_reinit_gl_state functionMike Erwin
All line & point drawing is responsible for setting its own state (as of January 2016) making this redundant.
2017-04-07OpenGL: transition away from GL_QUADSMike Erwin
Single quads are drawn as a TRIANGLE_FAN, with 4 verts in the same order. Multiple quads now use PRIM_QUADS_XXX and will need further work. Only 8 places still use this. Part of T49043
2017-04-07fix use of uninitialized variableMike Erwin
Bug crawled in via 2944438e9a276e48d7eabb5bb88ecec9b2f1e7dc as part of custom manipulators.
2017-04-07shrink fixed-size internal GLSL string buffersMike Erwin
We concatenate #defines and #extensions into these, and can count the max string lengths needed. 256 is enough to hold today's strings; we can adjust later if needed.
2017-04-07use best GPU matrix function for the jobMike Erwin
Follow-up to 204e067111af9346fccea9981a0a7962ec8ef906 which coverted manipulators' legacy GL matrix calls to new ones. part of T49450
2017-04-07OpenGL: support GLSL 3.3 core profileMike Erwin
When WITH_LEGACY_OPENGL = OFF. This is our final target for Blender 2.8, all previous versions will be dropped in the future. GLSL 3.3 is richer so we don't require as many extensions.
2017-04-07Workaround for weightpoint not workingDalai Felinto
Kudos to Germano Cavalcante for spotting the issue, the real fix is to pass SL to the function though
2017-04-07Merge branch 'master' into blender2.8Sybren A. Stüvel
# Conflicts: # source/blender/alembic/intern/abc_exporter.h # source/blender/alembic/intern/abc_util.cc
2017-04-07OpenGL: Get rid of PRIM_QUADS usage in manipulators codeJulian Eisel
2017-04-07OpenGL / Outliner: QUADS are not supported in coreDalai Felinto
2017-04-07Fix drawing of planar transfrom manipulators, update matrix codeJulian Eisel
2017-04-07Alembic import: prevent crash when cancelling import.Sybren A. Stüvel
It's possible that cancellation occured between the creation of the reader and the creation of the Blender object, in which case reader->object() returns a NULL pointer.
2017-04-07Alembic import: prevent double user decrement when cancelling import.Sybren A. Stüvel
BKE_libblock_free_us() was called on the object data, which decrements its user count, after which the same function was called on the object, which decrements the user count of the object data again. This double decrement was too much.
2017-04-073D Manipulator: add back protected flags checkCampbell Barton
This used to be a separate pass
2017-04-07Alembic: synced gather_objects_paths with visit_objectsSybren A. Stüvel
This was necessary, but was only mentioned at gather_object_paths (which I didn't see earlier). That's now also fixed.
2017-04-073D View: manipulator from custom-manipulators branchCampbell Barton
Original code from @Severin with changes from @dfelinto & @hypersomniac. This doesn't cause many functional changes besides using new transform manipulators. Submitted as D2604
2017-04-07Replace CGSubSurf direct includes to GL/glew.hDalai Felinto
2017-04-07Alembic: documented use of CacheReader structSybren A. Stüvel
2017-04-07Alembic: just pass NULL when we know mcmd->reader is NULL.Sybren A. Stüvel
More explicit, easier to read & understand.
2017-04-07Fix compilation error after recent changesSergey Sharybin
2017-04-07OpenGL: disable rotate manipulator clipping on MacMike Erwin
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.
2017-04-07fix rotation manipulator's Push/PopMatrix balanceMike Erwin
Was popping out the bottom of the stack.
2017-04-07Fix T51137: Edge Rip HangsCampbell Barton
2017-04-07OpenGL: refactor ui_panel_category_draw_tabMike Erwin
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.
2017-04-07OpenGL: refactor UI_draw_roundbox functionsMike Erwin
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)
2017-04-06New build option WITH_LEGACY_OPENGLDalai Felinto
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.
2017-04-06Fix T51135: Cylinder primitive generated bad UVsGermano Cavalcante
2017-04-06Depsgraph: Prefer use anonymous structs for unused argumentsSergey Sharybin
2017-04-06Alembic: rewrapped some lines to fit within 80 chars.Sybren A. Stüvel
2017-04-06Alembic import: compatibility with pre-C++11 compilers.Sybren A. Stüvel
2017-04-06Alembic import: restructured the importer w.g.t. parenthoodSybren A. Stüvel
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.
2017-04-06Alembic: rotation mode issue in copy_m44_axis_swap, and added unit tests.Sybren A. Stüvel
2017-04-06Alembic: Renamed create_rotation_matrix to create_swapped_rotation_matrix ↵Sybren A. Stüvel
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.
2017-04-06Alembic import: fixed crash on more complex modelSybren A. Stüvel
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.
2017-04-06Alembic: comment typo/error fixesSybren A. Stüvel
2017-04-06Alembic import: prevented unnecessary vector scalingSybren A. Stüvel
2017-04-06Alembic import: moved import-time scaling to different functionSybren A. Stüvel
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.
2017-04-06Alembic: removed unnecessary matrix copySybren A. Stüvel
2017-04-06Alembic: simplified AbcEmptyReader::readObjectDataSybren A. Stüvel
2017-04-06Alembic: added some r_ prefixes for return parametersSybren A. Stüvel
2017-04-06Alembic: code styleSybren A. Stüvel
2017-04-06Alembic: don't use m_shapes_typeSybren A. Stüvel
2017-04-06Depsgraph: Remove old depsgraph header from window managerSergey Sharybin
2017-04-06Depsgraph: Remove print dependnecies operatorSergey Sharybin
This is not really supported with the new depsgraph.
2017-04-06Depsgraph: Remove old depsgraph header from blender internalSergey Sharybin
2017-04-06Depsgraph: Remove old depsgraph header from pythonSergey Sharybin
2017-04-06Depsgraph: Remove old depsgraph header from modifiersSergey Sharybin
2017-04-06Depsgraph: Remove old depsgraph header from freestyleSergey Sharybin