Ton Roosendaal [Wed, 31 Oct 2012 17:28:21 +0000 (17:28 +0000)]
Bugfix #33032
(since 2010)
- Using 2-button mouse emulation (common for tablets)
- Press LMB, start painting, press ALT, release LMB
- This kept painting to run, since the release event was a MMB,
not handled by paint code.
Campbell Barton [Wed, 31 Oct 2012 17:03:31 +0000 (17:03 +0000)]
no longer use 'check_existing' to see if we need to have a save popup, instead use 'exec' operator on a saved file and
invoke on unsaved files.
correct missing memset --> CustomData_reset switch too.
Campbell Barton [Wed, 31 Oct 2012 15:17:35 +0000 (15:17 +0000)]
fix for asserts caused by own recent commits to use customdata typemap.
Campbell Barton [Wed, 31 Oct 2012 15:14:14 +0000 (15:14 +0000)]
fix for assert when rendering with cycles, caused by my recent commits.
Brecht Van Lommel [Wed, 31 Oct 2012 12:56:04 +0000 (12:56 +0000)]
Fix #31482: menu with scrollers when window is too small, didn't auto scroll
when using the arrow keys or mouse wheel to activate the next item.
Campbell Barton [Wed, 31 Oct 2012 11:45:41 +0000 (11:45 +0000)]
style cleanup and correct own invalid comment.
Brecht Van Lommel [Wed, 31 Oct 2012 11:31:30 +0000 (11:31 +0000)]
UI: fix for menu scrolling when window is too small. It was not working well
with arbitrary button layouts like multi column menus, because it was making
assumptions about position of previous/next buttons which doesn't work in
general.
Brecht Van Lommel [Wed, 31 Oct 2012 11:31:25 +0000 (11:31 +0000)]
Fix for #29056: NDOF motion events not configurable in user preferences.
Campbell Barton [Wed, 31 Oct 2012 11:05:32 +0000 (11:05 +0000)]
fix for crash in own commit r51773. drawing VBO's used the wrong origindex.
Campbell Barton [Wed, 31 Oct 2012 10:09:06 +0000 (10:09 +0000)]
style cleanup
Campbell Barton [Wed, 31 Oct 2012 09:50:24 +0000 (09:50 +0000)]
make use customdata typeoffset more, add an assert to ensure its to date.
Campbell Barton [Wed, 31 Oct 2012 05:39:10 +0000 (05:39 +0000)]
don't write tessface customdata layers, since tessfaces are not written either.
Campbell Barton [Wed, 31 Oct 2012 04:28:49 +0000 (04:28 +0000)]
add assert if zero is passed to string copy functions, would copy into first byte anyway.
Campbell Barton [Wed, 31 Oct 2012 04:24:55 +0000 (04:24 +0000)]
Campbell Barton [Wed, 31 Oct 2012 03:21:13 +0000 (03:21 +0000)]
fix for crash in python matrix utility functions .inverted/adjugated/transposed if the matrix has a read callback and fails.
also replace DM_get_poly_data_layer with dm->getPolyDataArray() since this is the convention in subsurf code and the functions now added.
Mitchell Stokes [Tue, 30 Oct 2012 22:45:08 +0000 (22:45 +0000)]
BGE: Committing patch #32291 "Updated profiling layout for BGE" from Angus Hollands (agoose77). This patch adds a headers for the profiling information and for the debug properties so they are no longer jumbled together. It also modifies how debug properties are displayed; changes "swap" to "Frametime"; and changes the display from seconds to ms, which is much more useful.
In addition to this patch, I've also modified the precision of the numbers displayed in the profiling information to make things a little cleaner.
Andrea Weikert [Tue, 30 Oct 2012 21:06:25 +0000 (21:06 +0000)]
fix [#30479] Exclamation mark '!' doesn't input with AZERTY keyboard mapping
For the french keyboard setting (AZERTY) on Windows, the '!' came back with winevent->type=312, winevent->ascii='!' and the ISTEXTINPUT only matched key codes up to 255. Now replaces with
ISKEYBOARD in wm_eventmatch.
Andrea Weikert [Tue, 30 Oct 2012 21:05:51 +0000 (21:05 +0000)]
fix compile error introduced in rev. 51773: missing header include.
Reported on IRC.
Campbell Barton [Tue, 30 Oct 2012 19:27:15 +0000 (19:27 +0000)]
code cleanup: remove unused transform snapping code (only use the BVH accelerated version now).
and quiet narrowing conversion warning between signed/unsigned int.
Campbell Barton [Tue, 30 Oct 2012 19:20:17 +0000 (19:20 +0000)]
remove CD_POLYINDEX customdata layer:
reported as [#29376] BMESH_TODO: remove tessface CD_ORIGINDEX layer
for a single mesh there could be 3 origindex mappings stored, one on the polygons and 2 on the tessfaces.
(CD_POLYINDEX and CD_ORIGINDEX).
as Andrew suggests, now tessfaces (which are really a cache of polygons), using origindex to point to polygons on
the same derived mesh, and polygons only store the original index values.
Ton Roosendaal [Tue, 30 Oct 2012 18:40:09 +0000 (18:40 +0000)]
Bugfix #33019
Grease Pencil draw - started with button from Toolbar - failed. Needed proper
event check.
Ton Roosendaal [Tue, 30 Oct 2012 17:36:00 +0000 (17:36 +0000)]
Two fixes:
- Added versioning for reading old files with logic saved
- Added two more 'alt backspace' options, for copyright and registered trademark.
(also 'tm' but it's not in our default font)
Campbell Barton [Tue, 30 Oct 2012 16:33:40 +0000 (16:33 +0000)]
style cleanup & re-use DNA pad var with new collision group object settings.
Mitchell Stokes [Tue, 30 Oct 2012 15:44:16 +0000 (15:44 +0000)]
BGE: Adding support for Bullet's collision masks. Each object now has a collision mask and a collision group. Object A and object B collide if object A's groups is in object B's mask and object B's group is in object A's mask. In other words, the group defines what the object is (collision wise) and the group defines what the object can collide with.
The majority of this patch was provided by Kupoman with some edits from me and heavy testing by z0r.
Ton Roosendaal [Tue, 30 Oct 2012 15:33:03 +0000 (15:33 +0000)]
Usability: Logic editor
- View now restricts to the actual region you work on. Makes zoom and pan nicer.
- Added HOME for reset view to 1:1 zoom level.
Also: fixed nasty bug in view2d code that checked validity of 2d views, only
showed (afaik) in the logic eidtor though.
Effect was that zoom in/out would weirdly jump when going across zoomlevel 1.
Campbell Barton [Tue, 30 Oct 2012 14:22:49 +0000 (14:22 +0000)]
minor improvement to vector api use, replace add, multiply by 0.5 with mid_v3_v3v3
Campbell Barton [Tue, 30 Oct 2012 12:45:42 +0000 (12:45 +0000)]
when an invalid subtype is passed to a property, a list of valid subtypes is now included in the exception message.
from bug report [#33018], this avoids common mistakes.
Campbell Barton [Tue, 30 Oct 2012 12:36:54 +0000 (12:36 +0000)]
rename subtype FILENAME --> FILE_NAME to match FILE_PATH, DIR_PATH
Campbell Barton [Tue, 30 Oct 2012 12:18:45 +0000 (12:18 +0000)]
style cleanup
Campbell Barton [Tue, 30 Oct 2012 12:08:44 +0000 (12:08 +0000)]
add in assert's to double check the line lenth is never <0
Campbell Barton [Tue, 30 Oct 2012 11:57:37 +0000 (11:57 +0000)]
fix for selection offset with indentation in the python console.
Brecht Van Lommel [Tue, 30 Oct 2012 11:51:17 +0000 (11:51 +0000)]
Cycles: optimization to not compile shaders and load images that are not
used by any mesh/lamp/world.
Campbell Barton [Tue, 30 Oct 2012 11:40:36 +0000 (11:40 +0000)]
minor changes to select similar,
- replace ngon_fake_area() with generic call to BM_face_calc_area().
- add defvert_find_shared() utility function.
Bastien Montagne [Tue, 30 Oct 2012 11:00:06 +0000 (11:00 +0000)]
Fix for own r51737.
Refactoring of draw code showed another problem: The MCol we want to draw may change without dm rebuild (e.g. when enabling solid textured option)! Also, choosing which MCol layer to use in GPU code is stupid, different draw modes use different layers/order of precedence!
Solved this by adding a new colType parameter to GPU_color_setup, and removing any 'color choosing' code from gpu_buffers.c.
Bastien Montagne [Tue, 30 Oct 2012 09:29:01 +0000 (09:29 +0000)]
Fix build for recent bmo commit (gcc wants a return value in any case! ;) ).
Campbell Barton [Tue, 30 Oct 2012 08:02:32 +0000 (08:02 +0000)]
bad naming, the bmesh operator only tags, not selects.
Campbell Barton [Tue, 30 Oct 2012 07:59:25 +0000 (07:59 +0000)]
code cleanup: move select-similar bmesh operators into their own file since there are 3 operators here that share
utility functions with eachother but have nothing in common with other operators in bmo_utils.c
Campbell Barton [Tue, 30 Oct 2012 07:29:17 +0000 (07:29 +0000)]
add the option to select Equal/Greater/Less when selecting similar.
Recently addons were submitted for review and this was the only advantage they had over blenders existing internal
select-similar tool.
Campbell Barton [Tue, 30 Oct 2012 06:43:30 +0000 (06:43 +0000)]
add option to select face by matching number of sides.
Campbell Barton [Tue, 30 Oct 2012 06:25:23 +0000 (06:25 +0000)]
correct assertion
Campbell Barton [Tue, 30 Oct 2012 03:05:45 +0000 (03:05 +0000)]
Disallow collection add/remove/clear/move when drawing. - similar to how writing to attributes is disabled.
Mitchell Stokes [Tue, 30 Oct 2012 01:59:15 +0000 (01:59 +0000)]
Removing BLENDER_GAME from the COMPAT_ENGINES set for the sun lamp's Sky & Atmosphere panel since it isn't supported in the BGE.
Antony Riakiotakis [Mon, 29 Oct 2012 19:47:26 +0000 (19:47 +0000)]
Fix: wrong brush drawn in image painting, image editor if uv sculpt is on. Now the correct paint struct is returned and the image zoom is calculated correctly
Ton Roosendaal [Mon, 29 Oct 2012 19:18:13 +0000 (19:18 +0000)]
Bugfix:
3D text object editing, ALT+Backspace trick is back to construct special characters.
Like: O , Alt+Backspace , / creates an O with a / in it.
It also makes plus-minus, unequal, copyright, 1/2, 3/4. etc. Easy method you
never forget after using once!
Got broken with adding UTF support a year ago.
Andrea Weikert [Mon, 29 Oct 2012 18:25:35 +0000 (18:25 +0000)]
fix [#33011] "System" tab empty in OSX - file browser
* items were wrongly added too SYSTEM_BOOKMARKS rather than SYSTEM, now fixed
Sergey Sharybin [Mon, 29 Oct 2012 18:03:32 +0000 (18:03 +0000)]
Buildbot: hopefully fix for missed sound on glibc2.11 slaves
Antony Riakiotakis [Mon, 29 Oct 2012 18:00:29 +0000 (18:00 +0000)]
YACBSF. Yet Another Classic Blenderplayer Stub Fix.
Ton Roosendaal [Mon, 29 Oct 2012 17:47:56 +0000 (17:47 +0000)]
To keep my commit rate high! :)
Ton Roosendaal [Mon, 29 Oct 2012 17:44:05 +0000 (17:44 +0000)]
Yet another hanging variable in event code - code cleanup woes.
This should make trackpads work.
Ton Roosendaal [Mon, 29 Oct 2012 17:41:19 +0000 (17:41 +0000)]
Bugfix #33004
Screencast recording stopped on a undo/redo. This was because all thread jobs
were killed then. Now it leaves screen jobs (screen cast) running, that's
data that doesn't change on undos.
Also renamed jobs_stop_all() to jobs_kill_all() - it terminates threads.
Bastien Montagne [Mon, 29 Oct 2012 16:26:18 +0000 (16:26 +0000)]
Complete fix for [#33002] Wrong vertex color.
Appart from the color glitch, there was several problems with vpaint:
* "fast_update" mode was never on, because of wrong testing code;
* drawing refresh during stroke in "fast_update" (i.e. no dm rebuild) mode was broken in VBO mode, because updated (tess data) mcol wasn't moved to colors GPUBuffer.
Solved the later point by adding a new DM_DIRTY_MCOL_UPDATE_DRAW flag to DerivedMesh dirty var, which is set each time vpaint stroke directly update me->mcol, and forces GPU_color_setup() to refresh the gpu's colors buffer.
Also got rid of the uggly GPU_color3_upload(), which basically did the same thing, but with an additional intermediate buffer !
Sergey Sharybin [Mon, 29 Oct 2012 16:07:16 +0000 (16:07 +0000)]
Buildbot: use proper archive name for glibc2.11 archives
Campbell Barton [Mon, 29 Oct 2012 15:43:54 +0000 (15:43 +0000)]
style cleanup: also quiet harmless compiler warning.
Ton Roosendaal [Mon, 29 Oct 2012 15:40:43 +0000 (15:40 +0000)]
Fix to make NDoF work again.
Sergey Sharybin [Mon, 29 Oct 2012 15:31:48 +0000 (15:31 +0000)]
Buildbot: tweaks for glibc2.11 build environment
Lukas Toenne [Mon, 29 Oct 2012 14:04:51 +0000 (14:04 +0000)]
Added compositor graph functions for removing socket connections explicitly in convertToOperations. The InputSocket->unlink function should only be used in combination with relinkConnectionsDuplicate, in which case the original node connection will still exist. This would trigger an assert failure, so the original connection should be removed. Only node using this atm is the channel separation node, but will be needed for future group nodes too.
Ton Roosendaal [Mon, 29 Oct 2012 12:48:51 +0000 (12:48 +0000)]
New woes in event system :)
Last cleanup resulted in the dreaded "Click" to fail again. Commented it.
Campbell Barton [Mon, 29 Oct 2012 12:44:24 +0000 (12:44 +0000)]
fix [#33010] image editor - scope handles resize
Joshua Leung [Mon, 29 Oct 2012 11:11:37 +0000 (11:11 +0000)]
Tweak for Group channels using Custom Bone Colors
Use the "Selected" color instead of the "Active" color when the group has active
status. This should help make the text just a little more legible, though in
some cases it still might not be enough.
Ton Roosendaal [Mon, 29 Oct 2012 11:08:10 +0000 (11:08 +0000)]
A last (I hope) tweak for double click detection.
Ton Roosendaal [Mon, 29 Oct 2012 08:59:47 +0000 (08:59 +0000)]
Bugfix #32996
Backspace event is messed up - it was inserting weird characters in the editors.
Added check for proper keypress now. Will check real issue later.
Campbell Barton [Mon, 29 Oct 2012 05:31:40 +0000 (05:31 +0000)]
fix [#32998] Decimate modifier - Planar
error in recent decimator upgrade, missing NULL check.
Campbell Barton [Mon, 29 Oct 2012 03:53:02 +0000 (03:53 +0000)]
correct use_fast_update for vertex painting, it wasn't swapping red/blue as it should have.
(pointed out by Bastien Montagne in relation to [#33002]).
Campbell Barton [Mon, 29 Oct 2012 03:36:55 +0000 (03:36 +0000)]
py api: add mathutils.Matrix adjugate(d) methods, also add adjoint_m2_m2() to BLI_math_matrix
Campbell Barton [Mon, 29 Oct 2012 02:11:40 +0000 (02:11 +0000)]
style cleanup
Lukas Toenne [Sun, 28 Oct 2012 17:47:47 +0000 (17:47 +0000)]
Removed the initial HIDDEN flag from the UI sidebar region in node editor. This way the sidebar is visible by default when making a new node editor.
Rationale is that the sidebar contains some extra detail settings for several node types. Many users don't seem to even know that this feature exists, so making it visible by default should be helpful.
Lukas Toenne [Sun, 28 Oct 2012 17:09:50 +0000 (17:09 +0000)]
Fix for freeing node trees that are part of other data blocks (material, world, lamp, texture, scene). These node trees were not properly freeing the IDProperty data, due to not being called from BKE_libblock_free.
Now there is an extra function BKE_libblock_free_data, which is called explicitly in ntreeFreeTree if the tree is not part of the library data (ntreeCopyTree does a similar thing using BKE_libblock_copy_data).
Sergey Sharybin [Sun, 28 Oct 2012 17:04:32 +0000 (17:04 +0000)]
Buildbot: keem sm_13 disabled for new buildbot too
Sergey Sharybin [Sun, 28 Oct 2012 17:03:36 +0000 (17:03 +0000)]
Buildbot: add glibc2.11 configuration files and build rules
Builder will go online as soon as new environment is copied to buildslave machine over the internet
Sergey Sharybin [Sun, 28 Oct 2012 16:58:44 +0000 (16:58 +0000)]
Buildbot: add glibc2.11 slaves, not online yet
Sergey Sharybin [Sun, 28 Oct 2012 16:40:31 +0000 (16:40 +0000)]
Buildbot: copy master.cfg from builder.blender.org
Seems this file went out of sync with actual file on the server
Campbell Barton [Sun, 28 Oct 2012 16:17:20 +0000 (16:17 +0000)]
fix for extruding edges giving incorrect (swapped) loop data for new faces.
Campbell Barton [Sun, 28 Oct 2012 15:37:29 +0000 (15:37 +0000)]
code cleanup: minor changes before committing functional changes.
Campbell Barton [Sun, 28 Oct 2012 15:23:16 +0000 (15:23 +0000)]
style cleanup
Ton Roosendaal [Sun, 28 Oct 2012 14:49:40 +0000 (14:49 +0000)]
Event system fix:
Now modifier key press gets generated without having own modifier set.
Same happens for double clicks on modifiers.
This also fixes case: press shift twice first, modifier fails.
Ton Roosendaal [Sun, 28 Oct 2012 12:20:38 +0000 (12:20 +0000)]
Bugfix #24016
Removed dubious code for checking CTRL+C CTRL+V on buttons.
This made copy/paste fail if you keep the modifier key holding.
Sergey Sharybin [Sun, 28 Oct 2012 12:08:36 +0000 (12:08 +0000)]
Fix #32981: Render baking redraw
Ton Roosendaal [Sun, 28 Oct 2012 11:19:35 +0000 (11:19 +0000)]
Event system cleanup: bringing KM_CLICK back in control.
- Solved Modal Keymap hijack of event codes
(with note this should be coded better)
- Added dedicated state variable check_click in event to trigger it
All this in an attempt to get code understandable and predictable again. :)
This solves error like:
- editmode mesh
- select a vertex
- grab it, press control for grid snap
- on LMB assign, it also did an extrude.
Ton Roosendaal [Sun, 28 Oct 2012 09:26:50 +0000 (09:26 +0000)]
Another leftover debug print, sorry!
Brecht Van Lommel [Sat, 27 Oct 2012 18:54:45 +0000 (18:54 +0000)]
Fix #32979: proportional edit connected was too slow with many vertices on
some meshes, now use the system qsort instead of a custom one (which I guess
suffered from poor choice of pivot point in some cases).
Andrea Weikert [Sat, 27 Oct 2012 18:31:52 +0000 (18:31 +0000)]
== file browser ==
PATCH: [#32989] Activate backup files filter in File Browser
Contributed by Georg Kronthaler, many thanks!
(I just moved the icon to a different place reserved for file browser icons)
* enables the filtering of backup files in the file browser
* adds a 'filter backup files'-icon to the filter buttons
* adds new icons for backup files in list and thumbnail view
* enables file preview for the backup files
Andrea Weikert [Sat, 27 Oct 2012 17:47:58 +0000 (17:47 +0000)]
== filebrowser ==
PATCH: [#32985] File Browser text file icon does not match text filter icon
Contributed by Georg Kronthaler, many thanks!
* set correct icon for text files and drag&drop
* remove duplicate if for filter_text
* fixed a couple of blanks at the end of line.
Ton Roosendaal [Sat, 27 Oct 2012 17:21:21 +0000 (17:21 +0000)]
Bugfix #32823 (probably) or from Thomas Dinges in irc:
- Camera mode fly a bit
- Apply view change
- Middlemouse to go out of camera view
Zoom then fails. Appears the flymode is resetting values that have to be set.
The bugreporter claims same, but blames it on particles ;)
Miika Hamalainen [Sat, 27 Oct 2012 17:19:55 +0000 (17:19 +0000)]
Smoke/Dynamic Paint: Allow use of fluid sim generated particles as emitter/brush.
Ton Roosendaal [Sat, 27 Oct 2012 16:47:08 +0000 (16:47 +0000)]
Bugfix, IRC reported
In texture buttons, changing the preview could crash.
The preview template was accidentally providing a Texture ID where a Material
was meant to be given.
Crash occurred due adding code in material update that checked/cleared node
previews.
Campbell Barton [Sat, 27 Oct 2012 15:34:54 +0000 (15:34 +0000)]
revert last commit, it broke regular face extrude. need to look into it further.
Ton Roosendaal [Sat, 27 Oct 2012 15:27:27 +0000 (15:27 +0000)]
Bugfix 32988
"Area prev space" was setting areas to "Info" - in case no previous editor
could be found. That goes wrong for cases like:
- goto composite screen
- make image editor full
- render
- esc
Campbell Barton [Sat, 27 Oct 2012 15:24:19 +0000 (15:24 +0000)]
fix for extruding single edges from faces giving flipped loop data - UV's/VCols
Campbell Barton [Sat, 27 Oct 2012 15:08:40 +0000 (15:08 +0000)]
comment testing typechecking code, was causing issues on gcc 4.4 for some reason.
Campbell Barton [Sat, 27 Oct 2012 15:05:12 +0000 (15:05 +0000)]
add --debug-handlers so --debug-events isnt so noisy.
Campbell Barton [Sat, 27 Oct 2012 14:55:31 +0000 (14:55 +0000)]
add back debug prints for event handlers. not sure why they were removed in r51683
Ton Roosendaal [Sat, 27 Oct 2012 14:10:25 +0000 (14:10 +0000)]
Bugfix:
Menu accellerator now accepts fast clicking again. (ctrl-q + q)
Gaia Clary [Sat, 27 Oct 2012 13:41:04 +0000 (13:41 +0000)]
wrong definition of parameterlist
Ton Roosendaal [Sat, 27 Oct 2012 13:35:33 +0000 (13:35 +0000)]
Another tweak in event code to get KM_CLICK work.
It was copying 'prevval' and 'prevtype' too often - can cause issues with
different event systems or perifirals.
Joshua Leung [Sat, 27 Oct 2012 13:22:44 +0000 (13:22 +0000)]
Comment + whitespace tweaks for constraints
* Radiant -> Radians
* Noted down revision number for when Jahka removed the old constraint blending
logic. I spent some time hunting this down while trying to check if it might've
caused any obvious changes leading to one of the (now closed) bugreports. Better
to note this in the code then.
Sergey Sharybin [Sat, 27 Oct 2012 13:22:36 +0000 (13:22 +0000)]
SCons: more libraries could be specified to be static now
Jack, jpeg, png, openmp, opencollada libraris now could be forced to be static
Ton Roosendaal [Sat, 27 Oct 2012 13:15:11 +0000 (13:15 +0000)]
Putting back mysterious lines that check KM_CLICK keymap conflicts
It's a real puzzle this click bizz!
Ton Roosendaal [Sat, 27 Oct 2012 12:31:35 +0000 (12:31 +0000)]
Removed leftover debug print.
Lukas Toenne [Sat, 27 Oct 2012 11:56:21 +0000 (11:56 +0000)]
Fix #32982, Segault when trying to show a node material.
This was caused by incomplete pointer mapping of the node->internal_links list in r51630, my bad. In intermediate revisions this could lead to corrupted .blend data. This patch adds a do_versions check to remove such bad links. The correct internal_links list will get restored on node update.
Campbell Barton [Sat, 27 Oct 2012 11:18:54 +0000 (11:18 +0000)]
use min/max inline functions where MIN2/MAX2 were doing type conversion.