Skip to content

Instantly share code, notes, and snippets.

@ithil
ithil / lockview.py
Last active November 22, 2022 15:13 — forked from Fweeb/lockview.py
Blender add-on for exposing the 3D View's rotation locking feature
# ***** BEGIN GPL LICENSE BLOCK *****
#
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@ithil
ithil / jumpy-view.coffee
Created November 22, 2018 23:30
Old Jumpy with multiple modes
# FIXME: Beacon code (currently broken in shadow). This will probably return
# in the form of a decoration with a "flash", not sure yet.
# TODO: Merge in @willdady's code for better accuracy.
# TODO: Remove space-pen?
### global atom ###
{CompositeDisposable, Point, Range} = require 'atom'
{View, $} = require 'space-pen'
_ = require 'lodash'
path = require 'path'