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
2016-10-01OpenGL: add support for programmable point sizeMike Erwin
And enable point sprites always. Fragment shaders can use gl_PointCoord now.
2016-10-01OpenGL: make platform requirements explicitMike Erwin
At context startup, make sure our assumptions about the OpenGL version are true. Should match since we set up the contexts... but this is what asserts are for, to check "should"s! Part of T49012
2016-09-30Merge branch 'master' into blender2.8Julian Eisel
Conflicts: source/blender/blenloader/intern/writefile.c
2016-09-29OpenGL: draw nurbs control verts with new imm modeMike Erwin
patch P397 by @lichtwert + minor const by @merwin Notes from drawvertsN function: this used to be called twice (once for selected/active, once for unselected -- guess: to avoid state switches[color]?) this used to be called in a loop, too (subcurves), moved the loop here to avoid multiple init stuff Part of T49043
2016-09-29Cleanup: StyleJulian Eisel
2016-09-29OpenGL: draw speaker with new immediate modeMike Erwin
patch P388 by @lichtwerk, I tweaked a few things. Since speaker theme color is opaque we leave blend mode alone. Part of T49043
2016-09-28Complement fixup for 4a1feaa5558ed603 (texture shaders)Dalai Felinto
We now multiply the alpha by the image alpha (as per severin suggestion). That still doesn't solve the main question of user preference drawing black.
2016-09-28Fix animation transition in region overlay not working since 4a1feaa5Dalai Felinto
We still have stills with the User Preference window, though.
2016-09-28Fix T49478: triangulate of face hangs Blender.Bastien Montagne
Another case of float imprecision leading to endless loop. INcreasing a bit 'noise threashold' seems to work OK. Not a regression, but might be nice to have in 2.78a.
2016-09-28Fix T49471: Vertex Connect randomly broken.Bastien Montagne
Not sure where this comes from, but code was converting BMEdge* to BMVert* to check oflags, i.e. not accessing correct memory. Regression, to be backported to 2.78a.
2016-09-28Curve pinning: Allow pinning object data without animated objectSergey Sharybin
Special case, so now we can pin tricky cases like animated camera DOF without requiring to have animation on the object level.
2016-09-28Fix T49460: Particle group instance 'Use Count' value gets reset on file-load.Bastien Montagne
Regression caused rBbcc863993ad, write code was assuming dw->ob was always valid, wich is no more the case right after reading file e.g. Another good example of how bad it is to use 'hidden' dependencies between datablocks. :( And another fix to be backported to 2.78a. :(((
2016-09-28POSELIB_OT_pose_add: only create keyframes for selected bones.Sybren A. Stüvel
Previously the pose library used the WholeCharacter key set, which ignores selection and add keys for almost all bones in the rig. This is a very slow operation on complex rigs. With this patch, only selected bones are keyed, defaulting to keying all bones when none are selected. Note that this fixes the FIXME previously mentioned in the source.
2016-09-28Fix missing properties editor update when changing 3D View cameraJulian Eisel
Actually two errors here: * Properties editor wasn't refreshing on (NC_SCENE | ND_RENDER_OPTIONS) notifiers * Was using notifier info bits wrongly, needs to send two separate notifiers Decided to remove ND_RENDER_OPTIONS rather than adding properties editor scene context refresh for it, this is more than a render option change.
2016-09-27modernize basic shader a tiny bitMike Erwin
"varying" is redundant here, all GS inputs & outputs vary. Any code that uses this will be GLSL 1.3 or newer.
2016-09-27safety checks in GPU shader libraryMike Erwin
If shader compilation fails, or for some other reason the shader is NULL or 0, we need to know.
2016-09-27fix basic shader syntax when drawing linesMike Erwin
Fixed on GL 3.2+, Mac still lays an egg due to the geometry shader.
2016-09-27Dynamic Paint: Don't store duplicate adjacency links.Alexander Gavrilov
Duplicates can happen at UV seams in case of resolution mismatch or other complications. It's better not to store them in case it confuses some math later on. Reviewers: mont29 Differential Revision: https://developer.blender.org/D2261
2016-09-27Dynamic Paint: Fix adjacency computations at UV seams.Alexander Gavrilov
1. When adding one pixel border to UV islands prefer grid directions. This is more logical as it means neighbor pixels will commonly share a border, opposed to just corners. 2. Don't subtract 0.5 when converting float UVs to int in computing adjacency across a UV seam. Pixels cover a square with corners at int positions and adding/subtracting 0.5 is only for dealing with the center point of a pixel. 3. Use the neighbour_pixel field from the correct pixel, and check it's not back to the origin point. 4. In the connected UV case, ensure that the returned index actually refers to a valid active pixel. This fixes paint spread not traversing some UV seams, while at the same time spreading to random unrelated points on other seams. The first problem is primarily fixed by 2, while the second one is addressed by item 4. Differential Revision: https://developer.blender.org/D2261
2016-09-27Fix T49466: Stupid typo in logicbricks new copy code from rB776a8548f03aBastien Montagne
Moved that code forth and back a few times while creating rB776a8548f03a fix, ended up forgetting to update it correctly for function where it layed down in the end. Last-minute fixes are never a good thing... Now we already have real reason for 2.78 'a' release :(
2016-09-27Fix T49461: Dynamic paint wetmap flickers.Bastien Montagne
Regression from rBa4a968f, we would adjust current point's wetness without actually protecting it in new multi-threaded context, leading to concurrent access mess. Now delay applying wetness reduction to current point to end of function, allows us to avoid having to lock current point twice together with neighbor one (and reducing spinlock awainting too). To be backported to 2.78a.
2016-09-27Fix T49464: Data Transfer modifier slows down redraw of window.Bastien Montagne
Never call function that might recompute a DM in an RNA itemf callback (or any UI-related func in general)! There was an XXX comment asking if this was OK - well, no, it was not. :P Could be ported back to some 2.78 flavour should we need it.
2016-09-27Fix most toolbar panels not visibleJulian Eisel
Was likely in here since initial blender2.8 branch commit (particle removal).
2016-09-26immediate mode: using texture shader for stereo drawingDalai Felinto
(for side-by-side and top-bottom stereo modes)
2016-09-26Merge branch 'master' into blender2.8Bastien Montagne
WARNING! Full build is broken, alembic has not been merged in correctly and has some references to particle stuff. Don't have time to tackle this now (and probably would be better if someone knowing what he's doing does it anyway). Conflicts: release/scripts/startup/bl_ui/properties_particle.py source/blender/blenkernel/intern/library_remap.c source/blender/blenkernel/intern/smoke.c source/blender/editors/physics/particle_object.c source/blender/editors/physics/physics_intern.h source/blender/editors/physics/physics_ops.c source/blender/editors/space_outliner/outliner_intern.h source/blender/editors/space_view3d/drawvolume.c source/blender/makesrna/intern/rna_smoke.c
2016-09-26Fix export image generated by export UV layoutSergey Sharybin
Was only happening with new dependency graph. The issue here is that scene's depsgraph layers will be 0 unless it was ever visible. Worked around by checking for 0 layer in the update_tagged of new depsgraph. This currently kind of following logic of visible_layers, but is weak. Committing so studio is unlocked here, will re-evaluate this layer.
2016-09-26Fix Scene datablocks being created with a real user while never having any ↵Bastien Montagne
real datablock user. Now using new system dedicated to that kind of cases, id_ensure_real_user(), instead. That way, usercount of Scenes is handled correctly at deletion time. Reported by @sergey over IRC, thanks.
2016-09-26Cleanup: stereo windowmanager codeDalai Felinto
This will make the changes in blender2.8 branch simpler
2016-09-26Fix crash in own recent rB776a8548f03a049.Bastien Montagne
New ID may be null, have to check this too! Reported by @panzergame over IRC, thanks. To be ported to 2.78 as well.
2016-09-25Cleanup: remove unused function.Kévin Dietrich
2016-09-25Alembic: only interpolate vertices when their number don't differKévin Dietrich
between samples. This could cause some crashes.
2016-09-25Smoke debug draw: take adaptive domain position into account.Kévin Dietrich
Eventually the various functions that deals with adaptive domain bounding box shall de-duplicated.
2016-09-25overhaul gpuMatrix APIMike Erwin
Complete (for our needs) 2D & 3D transformation API. Should be easy to port legacy OpenGL matrix stack-based code to this. Still needs testing. Ported ortho, frustum, lookAt functions from Viewport FX (rB194998766c65). Kept plenty of Viewport FX code from previous commit. Stack API and 2D routines ported from Gawain. This version uses BLI_math library so everything is licensed under GPL instead of the usual MPL. Part of T49450
2016-09-25port math function from Viewport FXMike Erwin
mul_v4_m4v3(r, M, v) means r = M * vec4(v, 1.0) Based on rB194998766c65
2016-09-25specialize mat3 multiply routinesMike Erwin
Same as 5c6baf1ee9754e39392926cd077bb2097baf39b9 but for 3x3 matrices.
2016-09-25Viewport smoke: fix a couple of issues in the new display settings.Kévin Dietrich
- WITH_SMOKE macro was not defined so some code was not compiled, though it was still accessible from the UI - some UI elements were disappearing due to bad indentation, also rework the UI code to not hide but rather disable/grey out button in the UI - Display thickness was not used due to bad manual merge of the code from the patch.
2016-09-25specialize mat4 multiply routinesMike Erwin
mul_m4_m4m4(R, A, B) gives us R = AB in general. Existing code assumed the worst, that A and B both alias the output R. For safety it makes internal copies of A and B before calculating & writing R. This is the least common case. Usually all 3 matrices differ. Often we see M = AM or M = MB, but never M = MM. With this revision mul_m4_m4m4 is called in exactly the same way but copies inputs only when needed. If you know the inputs are independent of the output use the "uniq" variant to skip the saftety checks.
2016-09-25Quiet shadow warningCampbell Barton
No need to declare new iterator for second loop.
2016-09-25Fix compile error when building without smoke support.Kévin Dietrich
Also fixes possible NULL pointer dereference. Fixes T49445.
2016-09-24Viewport smoke: add options to draw velocity vectors.Kévin Dietrich
This basically exposes to the UI a function that was only available through a debug macro ; the purpose is obviously to help debugging simulations. It adds ways to draw the vectors either as colored needles or as arrows showing the direction of the vectors. The colors are based on the magnitude of the underlying vectors. Reviewers: plasmasolutions, gottfried Differential Revision: https://developer.blender.org/D1733
2016-09-24Viewport smoke: add support for axis aligned slicing.Kévin Dietrich
Current approach uses view aligned slicing to generate polygons for GL texturing such that the generated polygons are always facing the view plane. Now it is also possible to use object aligned slicing, which creates polygons by slicing the object perpendicular to whichever axis is facing the most the view plane. It is also possible to create a single slice for inspecting the volume, or for 2D rendering effects. Settings for this, along with a density multiplier setting, are to be found in a newly added "Smoke Display Settings" panel in the smoke domain properties tab. Reviewers: plasmasolutions, gottfried Differential Revision: https://developer.blender.org/D1733
2016-09-24Mesh: added default UVs for Monkey, improved UVs for UV Sphere and Icosphere.Peter Lu
Fixes T47488 and T47478. Reviewed By: brecht Differential Revision: https://developer.blender.org/D2224
2016-09-24constify BLI_math_matrix inputsMike Erwin
GPU_matrix needs this very soon, and it's good practice in general. also sprinkled in some TODOs for later
2016-09-24Fix T49441: Grease Pencil - pie menu - brush name field crashes blenderJoshua Leung
Using context.active_gpencil_brush to access the active Grease Pencil brush would result in a crash if trying to rename the brush, because the "ID" pointer was not set. To be backported to 2.78
2016-09-24Collada: Trying to get rid of some warning messages on linuxGaia Clary
2016-09-24Collada: Trying to get rif of some warning messages on linuxGaia Clary
2016-09-24Fix: Collada Importer did not import the Blender Profile information ↵Gaia Clary
correctly when multiple objects are bound to same armature. This caused Bone tails to be placed wrong.
2016-09-23Quiet warning.Kévin Dietrich
2016-09-23Alembic: only export face sets when required by the user.Kévin Dietrich
Also remove deprecated face set code.
2016-09-23OpenGL: fix new shader for MacMike Erwin
Follow-up to rB4a1feaa5558ed60388fd3be41db74fbc54f2ab08